<?php
defined('BASEPATH') OR exit('No direct script access allowed');
?>
<?php
$banner_width = 1000;
$banner_height = $request==='home/index'?270:200;

$up_base = up_base();
$pics = $links = $texts = array ();
foreach ( $banner_data as $i )
{
    $pics[] = $up_base . $i['img_cover'];
    $links[] = $i['uri'];
    $texts[] = $i['title'];
}
$flash_vars =  'pics=' . implode( '|', $pics ) . '&links=' . implode( '|', $links ) . '&texts=' . implode( '|', $texts );
?>

        <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="<?php echo $banner_width;?>" height="<?php echo $banner_height;?>" id="FlashID">
          <param name="movie" value="../plugins/pixviewer/pixviewer_noborder.swf" />
          <param name="quality" value="high" />
          <param name="wmode" value="opaque" />
          <param name="swfversion" value="9.0.45.0" />
          <param name="allowScriptAccess" value="sameDomain" />
          <param name="bgcolor" value="#eeeeee" />
          <param name="FlashVars" value="<?php echo $flash_vars;?>&borderwidth=<?php echo $banner_width;?>&borderheight=<?php echo $banner_height;?>&textheight=0&interval_time=5" />
          <!--[if !IE]>-->
          <object type="application/x-shockwave-flash" data="../plugins/pixviewer/pixviewer_noborder.swf" width="<?php echo $banner_width;?>" height="<?php echo $banner_height;?>">
            <param name="quality" value="high" />
            <param name="wmode" value="opaque" />
            <param name="swfversion" value="9.0.45.0" />
            <param name="allowScriptAccess" value="sameDomain" />
            <param name="bgcolor" value="#eeeeee" />
            <param name="FlashVars" value="<?php echo $flash_vars;?>&borderwidth=<?php echo $banner_width;?>&borderheight=<?php echo $banner_height;?>&textheight=0&interval_time=5" />
          </object>
          <!--<![endif]-->
        </object>  